<table class="table table-responsive" id="distributionStatistics-table">
    <thead>
        <th>日期</th>
        <th>类型</th>
        <th>昵称</th>
        <th>姓名</th>
        <th>手机</th>
        <th>配单数量</th>
        <th>验单数量</th>
        <th>配送数量</th>
        <th>超时配送数量</th>
        <th colspan="3">操作</th>
    </thead>
    <tbody>
    @foreach($distributionStatistics as $v)
        <tr>
            <td>{!! $v->date !!}</td>
            <td>
                @if ($v->type == 1)
                    天统计
                @elseif ($v->type == 2)
                    周统计
                @elseif ($v->type == 3)
                    月统计
                @elseif ($v->type == 4)
                    季统计
                @elseif ($v->type == 5)
                    年统计
                @elseif ($v->type == 6)
                    全统计
                @endif
            </td>
            <td>{!! $v->user->nickname !!}</td>
            <td>{!! $v->user->name !!}</td>
            <td>{!! $v->user->phone !!}</td>
            <td>{!! $v->pairing_number !!}</td>
            <td>{!! $v->verify_number !!}</td>
            <td>{!! $v->shipping_number !!}</td>
            <td>{!! $v->shipping_overtime_number !!}</td>
            <td>
                {!! Form::open(['route' => ['distributionStatistics.destroy', $v->id], 'method' => 'delete']) !!}
                <div class='btn-group'>
                    <a href="{!! route('distributionStatistics.show', [$v->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-eye-open"></i></a>
{{--                    <a href="{!! route('distributionStatistics.edit', [$v->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-edit"></i></a>--}}
{{--                    {!! Form::button('<i class="glyphicon glyphicon-trash"></i>', ['type' => 'submit', 'class' => 'btn btn-danger btn-xs', 'onclick' => "return confirm('Are you sure?')"]) !!}--}}
                </div>
                {!! Form::close() !!}
            </td>
        </tr>
    @endforeach
    </tbody>
</table>